package cn.zzuisa.bluebox.biz.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Ao
 * @since 2019-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_device_alarm")
@ApiModel(value="Alarm对象", description="")
public class Alarm extends Model<Alarm> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "告警类型")
    private String alarmType;

    @ApiModelProperty(value = "告警信息")
    private String alarmMsg;

    @ApiModelProperty(value = "记录时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    private Integer dealStatus;
    private String dealResult;

    private LocalDateTime dealTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
